﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessLayer.Model.Entities
{
    /// <summary>
    /// Entidad que representa un evento
    /// </summary>
    public class Event
    {     
        /// <summary>
        /// Id del evento
        /// </summary>
        public Guid EventID { get; internal set; }
        
        /// <summary>
        /// Nombre del evento
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Descripcion del evento
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// Lugar en que se va a ejecutar el evento
        /// </summary>
        public string Place { get; set; }        

        /// <summary>
        /// Fecha del evento
        /// </summary>
        public DateTime Date { get; set; }
              
        /// <summary>
        /// Constructor
        /// </summary>
        public Event()
        {
            this.EventID = Guid.NewGuid();
            this.Name = String.Empty;
            this.Description = String.Empty;
            this.Date = DateTime.Today;
            this.Place = String.Empty;
        }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="name"></param>
        /// <param name="description"></param>
        /// <param name="place"></param>
        /// <param name="date"></param>
        public Event(string name, string description, string place,DateTime date)
        {
            this.EventID = Guid.NewGuid();
            this.Name = name;
            this.Description = description;
            this.Date = date;
            this.Place = place;
        }

    }
}
